package com.yanqu.road.server.manger.unioncampwar.service;

import com.google.protobuf.InvalidProtocolBufferException;
import com.yanqu.road.pb.syncMessage.SyncMessage;
import com.yanqu.road.pb.unionCampWar.UnionCampWar;
import com.yanqu.road.pb.userinfo.UserInfoProto;
import com.yanqu.road.server.game.service.IGameServiceCommand;
import com.yanqu.road.server.manger.player.UserMgr;
import com.yanqu.road.server.manger.unioncampwar.UnionCampWarPatronsMgr;
import com.yanqu.road.sync.message.SyncResponse;

public class UnionCampWarPatronsSyncCmd implements IGameServiceCommand {
    @Override
    public SyncResponse execute(SyncMessage.Request request) throws InvalidProtocolBufferException {
        SyncResponse syncResponse = new SyncResponse();
        UnionCampWar.CrossUnionCampWarPatronsSyncMsg syncMsg = UnionCampWar.CrossUnionCampWarPatronsSyncMsg.parseFrom(request.getDataBytes());
        UnionCampWarPatronsMgr.receivePatronsSyncMsg(syncMsg);
        return syncResponse;
    }
}
